package com.ltkj.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.TreeEntity;

/**
 * 文创商品类别对象 shop_goods_category
 * 
 * @author xupf
 * @date 2023-08-29
 */
@ApiModel(value = "文创商品类别")
public class ShopGoodsCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品类别id */
    @ApiModelProperty("商品类别id")
    private Long id;

    /** 商品类别编码 */
    @ApiModelProperty("商品类别编码")
    private String code;

    /** 商品类别名称 */
    @Excel(name = "商品类别名称")
    @ApiModelProperty("商品类别名称")
    private String name;

    /** 商品类别图标 */
    @ApiModelProperty("商品类别图标")
    private String logo;

    /** 是否启用（0否 1是） */
    @Excel(name = "是否启用", readConverterExp = "0=否,1=是")
    @ApiModelProperty("是否启用（0否 1是）")
    private String enable;

    /** 父级类别编码 */
    @ApiModelProperty("父级类别编码")
    private String parentCode;

    /** 层级 */
    @Excel(name = "层级")
    @ApiModelProperty("层级")
    private String level;

    /** 逻辑删除 */
    @ApiModelProperty("逻辑删除")
    private String isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }
    public void setEnable(String enable) 
    {
        this.enable = enable;
    }

    public String getEnable() 
    {
        return enable;
    }
    public void setParentCode(String parentCode)
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("logo", getLogo())
            .append("enable", getEnable())
            .append("parentId", getParentId())
            .append("parentCode", getParentCode())
            .append("level", getLevel())
            .append("isDel", getIsDel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
